24b39c
@@ -357,15 +357,11 @@
public void readFields(DataInput in) throws IOException {
     this.offset = 0;
   }
 
-  public void write(OutputStream out) throws IOException {
+  public void write(DataOutput out) throws IOException {
     checkBytes();
     out.write(currentBytes, offset, getTotalLength());
   }
 
-  public void write(DataOutput out) throws IOException {
-    write((OutputStream) out);
-  }
-
   public int compareTo(TimestampWritable t) {
     checkBytes();
     long s1 = this.getSeconds();
